<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>后台管理</title>
		<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
		<link rel="shortcut icon" href="favicon.ico" />
		<link rel="bookmark" href="favicon.ico" />
		<link rel="stylesheet" href="/css/site.min.css">
		<link rel="stylesheet" type="text/css" href="/css/wysiwyg.css"/>
	</head>

	<body>
		<!--nav-->
		<nav role="navigation" class="navbar navbar-custom">
			<div class="container-fluid">
				<div class="navbar-header">
					<button data-target="#bs-content-row-navbar-collapse-5" data-toggle="collapse" class="navbar-toggle" type="button">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
					<a href="#" class="navbar-brand">
						<$= user.email $>
					</a>
				</div>
				<div id="bs-content-row-navbar-collapse-5" class="collapse navbar-collapse">
					<ul class="nav navbar-nav navbar-right">
						<li class="active"><a href="/login/logout">注销</a></li>
						<li class="active"><a href="/index.html">返回首页</a></li>
					</ul>
				</div>
			</div>
		</nav>
		<!--header-->
		<div class="container-fluid">
			<div class="row row-offcanvas row-offcanvas-left">
				<div class="col-xs-6 col-sm-3 sidebar-offcanvas" role="navigation">
					<ul class="list-group panel">
						<li class="list-group-item"><i class="glyphicon glyphicon-align-justify"></i> <b>菜单</b></li>
						<$ if (user.issupper==0){ $>
							<li class="list-group-item"><a href="#/adminList"><i class="glyphicon glyphicon-user"></i>管理员</a></li>
						<$ } $>
							<li class="list-group-item"><a href="#/typeList"><i class="glyphicon glyphicon-list-alt"></i>分类管理</a></li>
							<li class="list-group-item"><a href="#/proList"><i class="glyphicon glyphicon-shopping-cart"></i>商品管理</a></li>
							<li class="list-group-item"><a href="#/newList"><i class="glyphicon glyphicon-globe"></i>新闻管理</a></li>
					</ul>
				</div>
				<div class="col-xs-12 col-sm-9 content">
					<div class="panel panel-default">
						<div class="panel-heading">
							<h3 class="panel-title"><a href="javascript:void(0);" class="toggle-sidebar"><span class="fa fa-angle-double-left" data-toggle="offcanvas" title="Maximize Panel"></span></a></h3>
						</div>
						<div class="panel-body" id="container">
						</div>
					</div>
				</div>
			</div>
		</div>
		<$- include('admin/adminList.html') $>
		<$- include('admin/adminAdd.html') $>
		<$- include('admin/typeList.html') $>
		<$- include('admin/typeAdd.html') $>
		<$- include('admin/proList.html') $>
		<$- include('admin/proAdd.html') $>
		<$- include('admin/newList.html') $>
		<$- include('admin/newAdd.html') $>
		<$- include('admin/preview.html') $>	
	</body>
	<script type="text/javascript" src="/js/site.min.js"></script>
	<script src="/js/ejs.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="/js/router.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="/js/yuanku.js" type="text/javascript" charset="utf-8"></script>
	<script src="/js/adminRouter.js" type="text/javascript" charset="utf-8"></script>
	<script src="/js/jquery.hotkeys.js" type="text/javascript" charset="utf-8"></script>
	<script src="/js/bootstrap-wysiwyg.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
//		$(function() {
//			$(".list-group li a").click(function() {
//				var url = $(this).attr("url");
//				$._ajax({
//					url: url,
//					type: "get",
////					dataType: "text"
////				}).done(function(text) {
////				$(".panel-body").html(text);
//				}).done(function(data) {
//					$(".panel-body").html(ejs.render($("#adminList").html(),{admins:data}));	
//				});
//			});
//		});
	</script>

</html>